package com.liang.integer;

public class ArrayToStudent {
    public static void main(String[] args) {
        String s = "xiaoming,18";
        String[] split = s.split(",");

        Student student = new Student();

            student.setName(split[0]);
            student.setAge(Integer.parseInt(split[1]));

            System.out.println(student.toString());


    }
}
